package oop_interface01;

public class Dog extends Animal implements Swin{
    public Dog() {
    }

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println(getName()+"在吃骨头");
    }

    @Override
    public  void swim(){
        System.out.println("狗在狗刨");
    }
}
